package com.wanhong.springboot.ssm.framework.jwt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author w_yu
 * @date 2020/11/26 14:23
 * @desc
 */
@Component
public class JwtConstant {

    public static final String USER_ID = "userId";

    public static final String USERNAME ="username";

    public static final String NICK_NAME="nickName";


    @Value("${jwt.accessToken}")
    public String tokenName;

    @Value("${jwt.refreshInterval}")
    public Long refreshInterval;

    @Value("${jwt.expireTime}")
    public Long expireTime;

    @Value("${jwt.secret}")
    public String tokenSecret;



}
